package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.SaleList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qingyu
 * @create 2022-01-02 21:33
 * @description
 */
public interface SaleListDao {
    /**
     * 销售单查询（可查询条件：销售单号、客户、付款状态）
     * @param saleNumber
     * @param customerId
     * @param state
     * @return
     */
    List<SaleList> list(@Param("saleNumber") String saleNumber,@Param("customerId") Integer customerId,@Param("state") Integer state);

    /**
     * 销售单保存
     * @param saleList
     */
    void save(SaleList saleList);
}
